<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: LV
  Date: 2016/7/15
  Time: 10:07
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <%--<meta charset="UTF-8">--%>
    <%--<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">--%>
    <%--<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0" />--%>
    <%--<!-- 全屏 -->--%>
    <%--<meta name="apple-mobile-web-app-capable" content="yes" />--%>
    <%--<!-- 上方栏显示 -->--%>
    <%--<meta name="apple-mobile-web-app-status-bar-style" content="black" />--%>
    <%--<!-- 不自动识别号码 -->--%>
    <%--<meta name="format-detection" content="telephone=no">--%>
    <%--<link href="${ctx}/assets/public_skin/css/reset.css" rel="stylesheet">--%>
    <%--<link href="${ctx}/assets/public_skin/css/shop_style.css" rel="stylesheet">--%>
    <%--<script src="${ctx}/assets/public_skin/js/jquery-1.11.1.min.js" type="text/javascript"></script>--%>
    <%--<script src="${ctx}/assets/public_skin/js/shop.common.js" type="text/javascript"></script>--%>
    <title>下单结算</title>
</head>
<body>
<%--<header>--%>
    <%--<h1>乐享数码店铺</h1>--%>
    <%--<a href="javascript:;"></a>--%>
<%--</header>--%>
<div id="check_box">
    <article class="viewports">
        <ul class="imglist01 c3">
            <li class="odr_b mb10 c5 cart_bg">
                <div class="layout-box ptb20">
                    <div class="mr20">
                        <i class="ico-60 ico_address mt20"></i>
                    </div>
                    <c:if test="${shippingAddress==null}">
                        <a href="${ctx}/shopping/addShippingAddressCart?cs=${cartIdString}">
                            <div class="box-col">
                                <div>&nbsp;</div>
                                <div class="tac">暂无收货地址，请添加！</div>
                            </div>
                        </a>
                    </c:if>
                    <c:if test="${shippingAddress!=null}">
                        <a href="${ctx}/shopping/addShippingAddressCart?cs=${cartIdString}">
                            <div class="box-col">
                                <div>收货人：${shippingAddress.consigneeName}<span class="r">${shippingAddress.consigneePhone}</span></div>
                                <div class="hgt2 mt10">收货地址：${shippingAddress.provinceName}${shippingAddress.cityName}${shippingAddress.districtName}${shippingAddress.streetName}${shippingAddress.address} </div>
                            </div>
                        </a>
                    </c:if>
                    <div class="right_arrow pl20 mt10">
                        <i></i>
                    </div>
                </div>
            </li>

            <c:forEach items="${cartList}" var="cart">
                <li class="odr_t odr_b mb10">
                    <div class="layout-box ptb20">
                        <input type="hidden"  value="${cart.cartId}" />
                        <div class="ith_img usernane_img140 mr20">
                            <span class="bg_span" style="background-image:url(${cart.productImage});"></span>
                        </div>
                        <div class="box-col">
                            <h2 class="fs28 hgt2">${cart.productName}</h2>
                            <div class="c9">${cart.productAttribute}</div>
                            <div class="fs24 ca mt20">
                                <span class="c-cb1448">&yen;${cart.productPrice}</span>
                            <span class="r">
                                &times;${cart.productNum}
                                </span>
                            </div>
                        </div>
                    </div>
                </li>
            </c:forEach>
            <%--<li class="odr_t odr_b">--%>
            <%--<span class="box-col">购买数量</span>--%>
            <%--<span class="num_addjian r5 r">--%>
            <%--<input class="t_btn t_jian" type="button" id="jian" value="-" />--%>
            <%--<input class="t_txt t_num" type="text" value="3" id="num">--%>
            <%--<input class="t_btn t_add" type="button" id="add" value="+" />--%>
            <%--</span>--%>
            <%--</li>--%>
            <li class="odr_b">
                <span class="box-col">配送方式</span>
                <span class="r">快递:费用￥${freight}</span>
            </li>
        </ul>
    </article>
    <div class="buy_height"></div>
    <div class="bottom_buy layout-box tac">
        <div class="b-ffffff box-col tal pl20">
            <div class="A-checkbox pt15 l mr30">
                <%--<input class="subBox" type="checkbox" /><label></label>--%>
            </div>
            总价：<span class="c-cb1448">&yen;${totalPayment}</span>
        </div>
        <c:if test="${shippingAddress==null}">
            <a class="b-ffaa3b cf plr50" href="#">去结算</a>
        </c:if>
        <c:if test="${shippingAddress!=null}">
            <a class="b-ffaa3b cf plr50" href="${ctx}/shopping/settleAccountCart?cs=${cartIdString}&aid=${shippingAddress.addressId}">去结算</a>
        </c:if>
    </div>
    <!--end 底下购物按钮-->
</div>
</body>
</html>
